package sh.ds.el.entity.base;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.MappedSuperclass;

import sh.ds.el.enums.CommonEnums.VALIDITY;

@MappedSuperclass
@SuppressWarnings("serial")
public abstract class BusinessEntity extends BaseEntity {

	@Column(name = "CREATOR")
	private Long creator;
	
	@Column(name = "CREATE_TIME")
	private Date createTime;
	
	@Column(name = "LAST_MODIFIER")
	private Long lastModifier;
	
	@Column(name = "LAST_MODIFY_TIME")
	private Date lastModifyTime;

	@Column(name = "VALIDITY")
	@Enumerated(EnumType.STRING)
	private VALIDITY validity;
	
	public Long getCreator() {
		return creator;
	}

	public void setCreator(Long creator) {
		this.creator = creator;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getLastModifier() {
		return lastModifier;
	}

	public void setLastModifier(Long lastModifier) {
		this.lastModifier = lastModifier;
	}

	public Date getLastModifyTime() {
		return lastModifyTime;
	}

	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}

	public VALIDITY getValidity() {
		return validity;
	}

	public void setValidity(VALIDITY validity) {
		this.validity = validity;
	}
	
}
